import request from './../axios'

import {requestHandle} from "./../axios";
import {R, API_PREFIX} from "@/assets/js/dict.js"

/**
 *  --------------------------------------- 家教测评 Start ---------------------------------------
 */

/**
 * 查询测评问题列表
 * 
 * @method GetQueryTest
 * 
 * @param {String} id // 家教id
 * 
 */

export function GetQueryTest (params) {
    return request({
        url: '/tutor/action/queryTest',
        method: 'get',
        params
    })
}


/**
 * 保存测评问题列表
 * 
 * @method postSaveTest 
 *
 **/
export function postSaveTest (params) {
    return request({
        url: '/tutor/action/saveTest',
        method: 'post',
        data: params
    })
}


/**
 * 提交测评问题列表
 * 
 * @method postCommitTest
 * 
 */

export function postCommitTest (params) {
    return request({
        url: '/tutor/action/commitTest',
        method: 'post',
        data: params
    })
}

/*
* 查看学习资料
* */
export function learningMaterials(call) {
    requestHandle(request({url:`${API_PREFIX}/tutor/action/learningMaterials`}), call)
}


/**
 *  --------------------------------------- 家教测评 End ---------------------------------------
 */


